
import request from '@/utils/request'

/**
 * 分页查询考勤列表
 * @param {*} data
 */
export function hrmDingtalkAttendanceQueryPageListAPI(data) {
  return request({
    url: 'hrmAttendanceStatistical/queryPageList',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 导出
 * @param {*} data
 */
export function hrmDingtalkAttendanceExportAPI(data) {
  return request({
    url: 'hrmAttendanceStatistical/excelExport',
    method: 'post',
    responseType: 'blob',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 修改
 * @param {*} data
 */
export function hrmDingtalkAttendanceUpdateAPI(data) {
  return request({
    url: 'hrmAttendanceStatistical/update',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 获取钉钉部门列表，用于查询
 * @param {*} data
 */
export function hrmDingtalkAttendanceQueryDingtalkDeptsAPI(data) {
  return request({
    url: 'hrmAttendanceStatistical/queryDingtalkDepts',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}


/**
 * 获取钉钉打卡列表
 * @param {*} data
 */
export function hrmDingtalkAttendanceClockQueryAPI(data) {
  return request({
    url: 'hrmAttendanceClockWarehouse/queryPageList',
    method: 'post',
    data,
    headers: {
      'Content-Type': 'application/json;charset=UTF-8'
    }
  })
}

/**
 * 生成钉钉打卡数据
 * @param {*} data
 */
export function hrmDingtalkAttendanceStaticalGeneratorAPI(data) {
  return request({
    url: 'hrmAttendanceStatistical/staticalAttendance',
    method: 'post',
    data
  })
}
